package com.ostrich.cloud.ostrichPermission.app.config;



import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.builders.PathSelectors;
import springfox.documentation.builders.RequestHandlerSelectors;
import springfox.documentation.service.ApiInfo;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@Configuration
@EnableSwagger2
public class AppConfig  {

    @Bean
    public Docket api() {


        ApiInfo apiInfo = new ApiInfoBuilder()
                .title("鸵鸟生鲜商品API接口文档")
                .description("通过互联网API调用的方式，调用商品相关服务")
                .contact("maizige@woniuxy.com")
                .version("嫦娥九号")
                .build()
                ;
        return new Docket(DocumentationType.SWAGGER_2)
                .apiInfo(apiInfo)
                .select()
                .apis(RequestHandlerSelectors.any())
                .paths(PathSelectors.any())
                .build();
    }
    /**
     * rides配置类
     * @author 15594
     */




}
